<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/entryform/pur_lest/purLestform_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/purLest/purlist_editEntity.shtml">
		<input type="hidden" class="form-control checkacc" value="${before.id}"
			name="purlestFormMap.id" id="id">
		<section class="panel panel-default">
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">请输入盘点数：</label>
					<div class="col-sm-9">
						<input type="text" name="purlestFormMap.reckoning" 
						class="form-control" id="pan">
					</div>
				</div>
				
				<div class="form-group" style='display:none;' >
					<label class="col-sm-3 control-label">末期结存数量：</label>
					<div class="col-sm-9">
						<input type="text" name="purlestFormMap.finalBalCount" 
						class="form-control" value="${before.finalBalCount}" id="jie">
					</div>
				</div>
				<div class="form-group" style='display:none;'>
					<label class="col-sm-3 control-label">盈亏：</label>
					<div class="col-sm-9">
						<input type="text" name="purlestFormMap.profitAndLoss" 
						value="${before.profitAndLoss}" class="form-control" id="ying">
					</div>
				</div>
				
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> </section>
	</form>
	
	
	
	<script type="text/javascript">
//总价随着商品的数量改变而改变
$(function() {
		$("#pan").change(function() {
			var pan =  parseInt($("#pan").val());
			var jie = parseInt($("#jie").val());
			$("#ying").val(pan - jie);
		});
		
		
	});
</script>
</body>
</html>